/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.strategy;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.comac.ins.isfd.mapper.IsfdSectionMapper;

@Component
public class SectionCalculation implements TableCalculationStrategy {
    private final IsfdSectionMapper baseMapper;

    @Autowired
    public SectionCalculation(IsfdSectionMapper baseMapper) {
        this.baseMapper = baseMapper;
    }

    @Override
    public Long calculate(Date startTime, Date endTime) {
        return baseMapper.calculate(startTime, endTime);
    }

}
